From f261d56da32418ee6aa534a3fc08c76bb5a67f11 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 3 Dec 2010 14:09:35 +0100 Subject: [PATCH] GtkStyleContext: invalidate icon caches when resetting widgets --- gtk/gtkstylecontext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index d4f5db3dd8..b8d8c992e7 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -33,6 +33,7 @@ #include "gtksymboliccolor.h" #include "gtkanimationdescription.h" #include "gtktimeline.h" +#include "gtkiconfactory.h" /** * SECTION:gtkstylecontext @@ -1332,6 +1333,8 @@ gtk_style_context_reset_widgets (GdkScreen *screen) { GList *list, *toplevels; + _gtk_icon_set_invalidate_caches (); + toplevels = gtk_window_list_toplevels (); g_list_foreach (toplevels, (GFunc) g_object_ref, NULL); -- 2.30.2